﻿@using CashFlow.Db.Entity;
@{
    Layout = null;
    var isAdminnistrator = (bool)ViewBag.IsAdminnistrator;
    var adminInfo = ViewBag.AdminInfo as AdminEntity;
}

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="~/Static/Scripts/layui-v2.8.18/css/layui.css">
    <script type="text/javascript" src="~/Static/Scripts/md5.js"></script>
    <script type="text/javascript" src="~/Static/Scripts/layui-v2.8.18/layui.js"></script>
    <script type="text/javascript" src="~/Static/Scripts/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="~/Static/Js/Tools.js"></script>
    <title>满堂创品系统管理</title>
    <style>
        .iconset {
            margin-right: 5px;
        }

        #container .layui-tab-content {
            padding: 0px;
        }
    </style>
</head>
<body>
    <div class="layui-layout-admin">
        <!--头部-->
        <div class="layui-header">
            <div class="layui-logo">满堂创品</div>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                    <a href="javascript:;"><img src="~/Static/Images/icon-v2.png" class="layui-nav-img">@adminInfo.Name</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" id="MyInfo">我的资料</a></dd>
                        <dd><a href="javascript:;" id="Logout">安全退出</a></dd>
                    </dl>
                </li>
            </ul>
        </div>

        <!--左侧-->
        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="demo" style="margin-right: 10px;">
                    @{
                        if (isAdminnistrator)
                        {
                            <li class="layui-nav-item layui-nav-itemed">
                                <a href="javascript:;"><i class="layui-icon layui-icon-set iconset"></i>系统管理</a>
                                <dl class="layui-nav-child">
                                    <dd>
                                        <a href="javascript:;" data-type="toAdd" class="subMenu" data-id="1-1" data-title="用户管理" data-url="/Admin/Index">
                                            <i class="iconfont  icon-yonghu iconset"></i>用户管理
                                        </a>
                                    </dd>
                                </dl>
                            </li>
                        }
                    }
                    <li class="layui-nav-item layui-nav-itemed">
                        <a href="javascript:;"><i class="layui-icon layui-icon-set iconset"></i>我的店铺</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;" data-type="toAdd" class="subMenu" data-id="2-1" data-title="会员管理" data-url="/User/Index">
                                    <i class="iconfont icon-yonghu iconset"></i>会员管理
                                </a>
                            </dd>
                            <dd>
                                <a href="javascript:;" data-type="toAdd" class="subMenu" data-id="2-2" data-title="订单管理" data-url="/Order/Index">
                                    <i class="iconfont icon-yonghu iconset"></i>订单管理
                                </a>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>

        <image></image>
        <!--中间主体-->
        <div class="layui-body" id="container" style="padding: 0px; padding-top: 5px; box-sizing: content-box;">
            <div class="layui-tab" lay-filter="tabs" lay-allowClose="true" style="margin: 0px;">
                <ul class="layui-tab-title">
                </ul>
                <div class="layui-tab-content">
                </div>
            </div>
        </div>
    </div>
</body>
</html>
<style type="text/css">
    .myInfoDlgTable {
        width: 100%;
    }

        .myInfoDlgTable td {
            padding: 5px;
            font-size: 14px;
        }

        .myInfoDlgTable label {
            font-size: 16px;
            font-weight: 600;
        }
</style>
<script type="text/html" id="MyInfoDlg">
    <form class="layui-form">
        <table class="myInfoDlgTable" style="margin-top: 15px;">
            <tr>
                <td align="right" width="40%">用户名:</td>
                <td><label class="lb-myInfoDlg-username"></label></td>
            </tr>
            <tr>
                <td align="right">姓名:</td>
                <td><label class="lb-myInfoDlg-name"></label></td>
            </tr>
            <tr>
                <td align="right">创建时间:</td>
                <td><label class="lb-myInfoDlg-time"></label></td>
            </tr>
        </table>
    </form>
</script>
<input type="hidden" id="hdUserName" value="@adminInfo.UserName" />
<input type="hidden" id="hdName" value="@adminInfo.Name" />
<input type="hidden" id="hdTime" value="@adminInfo.CreateTime" />
<script type="text/javascript" src="~/Static/Js/home.js?rand=01234567"></script>